import request from '@/utils/axios/request'
import API from './constants'

export const getNew = () => {
  return request({
    url: API.NEW_API,
    method: 'POST',
    data: {
      apikey: '0df993c66c0c636e29ecbb5344252a4a',
    },
  }).then((result) => {
    return result
  }).catch(console.log)
}

export const getCls = () => {
  return request({
    url: API.CLASSIFY_API,
    method: 'POST',
    // params: {
    //   tag: '战争',
    // },
    data: {
      apikey: '0df993c66c0c636e29ecbb5344252a4a',
    },
  }).then(result => {
    console.log(result)
  })
}

